<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
Route::get('/','Index/index');
Route::get('auth','Auth/index');
Route::any('yar','index/yar/index');
Route::any('yars','Index/yar/plo');
//-----------创建教室路 Start-------
Route::get('room/show','admin/rom/show',[]);
Route::any('room/create','admin/rom/create');
Route::any('room/alumnadd','admin/rom/create_alum_room');
Route::any('room/node/add','admin/rom/create_node_room');
Route::any("room/custom",'admin/rom/create_coustom_room');
Route::any('room/my/alum','admin/rom/crealuromByalum');
Route::any('room/my/node','admin/rom/creanoderomBynode');
//----------创建教室路由 END

Route::any("sj/test",'admin/rom/test',[]);
Route::get('session/test','admin/test/index');

//---------自定义分级选择创建教室路由 Start
Route::any('alum/session_save','admin/Alunm/session_save');
Route::any('alum/subject_select','admin/Alunm/subject_select');
Route::any('alum/are_select/:id',"admin/Alunm/are_select",['id'=>'\d+']);
//---------自定义分级选择创建教室路由 End

//--------教室用户查询路由 Start
Route::any('register/user','admin/user2/index');
Route::any('noregister/user','admin/user2/inactive');
Route::any('nogister/lists','admin/user2/inactivelist');
//----------教室用户查询路由结束 End

//-----------教室用户状态路由 Start --------
Route::any('room/user/status','admin/RomUser/getUserStatus');
Route::any('room/user/fetch/:room_id','admin/RomUser/onlie_fetch_room');
//Route::any('room/user/fetch','admin/RomUser/onlie_fetch_room');
//---------------教室用户状态路由 End

//---测试路由开始
Route::any('test','admin/test/ss');
Route::any('test2','admin/RomUser/fetch_chatroom_info');

//---教室评价路由Startt
Route::any('room/evulation','admin/RoomEvulation/index');

//------网易云教室管理路由 Start
Route::any('room/user/fetch','admin/RomUser/onlie_fetch_room');
Route::any('room/user/select','admin/RomUser/select');//查询教室
Route::any('room/user/update','admin/RomUser/update_chatroom');//更新教室
Route::any('room/user/toggleCloseStat','admin/RomUser/toggleCloseStat');//修改状态
Route::any('room/user/setMemberRole','admin/RomUser/setMemberRole');//设置角色
Route::any('request/address','admin/RomUser/chatroomRequestAddr');//查询请求地址
Route::any('sendmsg','admin/RomUser/sendMsg');//发送消息
Route::any('temporaryMute','admin/RomUser/temporaryMute');//设置禁言
Route::any('muteRoom','admin/RomUser/muteRoom');//将聊天室整体禁言
Route::any('membersByPage','admin/RomUser/membersByPage');//分页获取成员列表
Route::any('queryMembers','admin/RomUser/queryMembers');//批量获取在线成员信息
Route::any('updateMyRoomRole','admin/RomUser/updateMyRoomRole');//变更聊天室内的角色信息
Route::any('queuePoll','admin/RomUser/queuePoll');//从队列中取出元素
Route::any('queueList','admin/RomUser/queueList');//排序列出队列中所有元素
Route::any('queueDrop','admin/RomUser/queueDrop');//删除清理整个队列
Route::any('queueInit','admin/RomUser/queueInit');//初始化队列
Route::any('querySessionMsg','admin/RomUser/querySessionMsg');//单聊云端历史消息查询
Route::any('queryChatroomMsg','admin/RomUser/queryChatroomMsg');//聊天室云端历史消息查询
Route::any('queryUserEvents','admin/RomUser/queryUserEvents');//用户登录登出事件记录查询
Route::any('deleteMediaFile','admin/RomUser/deleteMediaFile');//删除音视频/白板服务器录制文件



//后台路由开始 ---
Route::get('study','admin/admin/index');
Route::any('admin/login','admin/admin/login');
Route::any('admin/test','admin/AccountSync/index');
Route::any('admin/session','admin/admin/loginout');
Route::any('admin/cookie','admin/admin/clear_cookie');
Route::any('admin/index','admin/index/index');
Route::any('err','admin/admin/err');
Route::any('ui','admin/test/mo');
Route::any('center','admin/Index/index');
Route::any('loginout','admin/admin/loginout');
//-------------权限路由开始
Route::any('au/index','admin/Jurisdiction/index');
Route::any('admin/Jurisdiction/add','admin/Jurisdiction/add');
Route::any('admin/Jurisdiction/doadd','admin/Jurisdiction/doadd');
Route::any('admin/Jurisdiction/delete','admin/Jurisdiction/del');
Route::any('admin/Jurisdiction/edit','admin/Jurisdiction/edit');
Route::any('admin/Jurisdiction/doedit','admin/Jurisdiction/doedit');
Route::any('admin/Jurisdiction/jobset','admin/Jurisdiction/jobset');
Route::any('admin/Jurisdiction/saverole','admin/Jurisdiction/saverole');
//-------------角色操作路由开启
Route::any('admin/role/index','admin/role/index');
Route::any('admin/role/edit/id/:id','admin/role/edit');
Route::any('admin/role/doedit','admin/role/doedit');
Route::any('admin/role/delete/id/:id','admin/role/del');
Route::any('admin/role/add','admin/role/add');
Route::any('admin/role/doadd','admin/role/doadd');
Route::any('admin/role/rolelist/id/:id','admin/role/rolelist');
Route::any('admin/Role/savenode/id/:id','admin/role/savenode');
//----------------操作路由开始
Route::any('admin/node/index','admin/node/index');
Route::any('admin/node/add','admin/node/add');
Route::any('admin/node/delete/id/:id','admin/node/del');
Route::any('admin/node/doadd','admin/node/doadd');
Route::any('admin/node/edit/id/:id','admin/node/edit');
Route::any('admin/node/doedit/id/:id','admin/node/doedit');

